Skip to content

Instantly share code, notes, and snippets.

@gingerwizard
gingerwizard / loading_100m_transactions.md
Created April 9, 2024 12:53
Loading 100m transactions for kmeans
-- data table
CREATE TABLE transactions
(
  id UInt32,
  vector Array(Float32),
  customer UInt32,
)
ENGINE = MergeTree -- this can be a Null engine
ORDER BY id
@MuhammadSaim
MuhammadSaim / rarreg.key
Last active July 24, 2026 22:12
Step 1: Create a file called rarreg.key Step 2: Paste into the file the raw content of this gist Step 3: Go to Winrar install directory (by default => c:\ProgramFiles\WinRAR\ ) Step 4: Paste the rarreg.key into WinRAR directory Step 5: Enjoy
RAR registration data
WinRAR
Unlimited Company License
UID=4b914fb772c8376bf571
6412212250f5711ad072cf351cfa39e2851192daf8a362681bbb1d
cd48da1d14d995f0bbf960fce6cb5ffde62890079861be57638717
7131ced835ed65cc743d9777f2ea71a8e32c7e593cf66794343565
b41bcf56929486b8bcdac33d50ecf773996052598f1f556defffbd
982fbe71e93df6b6346c37a3890f3c7edc65d7f5455470d13d1190
6e6fb824bcf25f155547b5fc41901ad58c0992f570be1cf5608ba9
@tandpfun
tandpfun / SKILL.md
Last active July 24, 2026 21:58
Extract Clothing Skill

REPO HERE: https://github.com/tandpfun/wardrobe


name: extract-clothing-cutouts description: Extract high-quality, deduplicated transparent ecommerce clothing cutouts from a folder of photographs where people wear one or more garments. Use when Codex must find outfit or model photos, identify unique clothing across images, create focused references, reconstruct complete garments with Imagegen, remove a solid chroma background into RGBA PNGs, and output only the finished clothing images into a new folder under the current working directory.

Extract Clothing Cutouts

Turn photographs of worn clothing into source-faithful standalone catalog PNGs. Treat each result as a reconstruction from visible evidence, not literal segmentation whenever the wearer or another layer occludes part of the garment.

@ossa-ma
ossa-ma / tropes.md
Last active July 24, 2026 21:58
AI Writing Tropes to Avoid — tropes.fyi by ossama.is

AI Writing Tropes to Avoid

Add this file to your AI assistant's system prompt or context to help it avoid common AI writing patterns. Source: tropes.fyi by ossama.is


Word Choice

"Quietly" and Other Magic Adverbs

@Maciejdziuba
Maciejdziuba / CHEATSHEET.md
Last active July 24, 2026 21:52
Kimi Everywhere — run any coding harness (Claude Code, Codex, OpenCode, Cline, Aider) on one flat-fee Kimi subscription. One key, two protocols, zero token bills.

Kimi Everywhere — Cheat Sheet

One Kimi Code subscription key. Every harness. Copy-paste and go.

Endpoints & key

What Value
Anthropic-compatible base URL https://api.kimi.com/coding/
OpenAI-compatible base URL https://api.kimi.com/coding/v1
@dramaticlly
dramaticlly / EnhancedCostcoAnalyzer.html
Created November 24, 2025 06:41
Visualization of Costco Spend
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Costco Receipt Dashboard</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- Chart.js Library -->
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
@syntaxhacker
syntaxhacker / opencode-custom-provider-guide.md
Created April 23, 2026 06:09
Step-by-step guide to add any OpenAI-compatible provider (e.g. NVIDIA NIM) to OpenCode with auth.json key separation

Adding a Custom Provider to OpenCode

OpenCode supports any OpenAI-compatible API via custom providers.
Your API keys are stored separately from config to prevent accidental leaks.


Architecture

| File | Purpose |

@sykhro
sykhro / Automatic horizontal flips.md
Last active July 24, 2026 21:37
Semi-automatic horizontal flips vegas plugin. Alternatively flips all the video clips after the one you select

10th anniversary of automatic horizontal flips

My utmost respect to makers of the YTPMV lost art. This script has been out in the wild for 10 years so I figured it was time to fix a couple known issues!

Caution

The script now handles versions of Vegas older than 14 automatically. No need to do anything!

  1. Locate your Vegas installation folder, commonly C:\Program Files\Vegas Pro {version}\
@probonopd
probonopd / Wayland.md
Last active July 24, 2026 07:14
Think twice about Wayland. It breaks everything!

Think twice before abandoning X11. Wayland breaks everything!

tl;dr: Wayland is not "the future", it is merely an incompatible alternative to the established standard with a different set of priorities and goals.

Wayland breaks everything! It is binary incompatible, provides no clear transition path with 1:1 replacements for everything in X11, and is even philosophically incompatible with X11. Hence, if you are interested in existing applications to "just work" without the need for adjustments, then you may be better off avoiding Wayland.

Wayland solves no issues I have but breaks almost everything I need. Even the most basic, most simple things (like xkill) - in this case with no obvious replacement. And usually it stays broken, because the Wayland folks mostly seem to care about Automotive, Gnome, maybe KDE - and alienating e

@intsangity
intsangity / bpc-on-ms-edge.txt
Created February 5, 2025 16:17
Installing Bypass Paywalls Clean on Microsoft Edge
To download the Bypass Paywalls Clean, find the URL of the repository from the Wikipedia article about the plug-in.
Download the latest CRX file. However, you won't be able to download that file using Edge, since it will remove it. You'll have to download it using another utility.
After downloading the file, open an "edge://extensions/" tab, enable developer mode, and drag the downloaded CRX file to the tab. This will install it.
You'll notice that you can't enable the extension. This is because Edge doesn't know where the file came from and doesn't trust it.
To get Edge to trust it, you'll have to add a registry key.